package com.young.design.pattern.proxy.dynamic;


import com.young.design.pattern.proxy.Subject;

/**
 * @ClassName : DynamicProxyTest
 * @Author : hyy
 * @Date: 2020-03-19
 */
public class DynamicProxyTest {
    public static void main(String[] args) {
        RealSubject realSubject = new RealSubject();
        DynamicProxy dynamicProxy = new DynamicProxy();
        Subject proxy = (Subject) dynamicProxy.getProxy(realSubject);
        proxy.request();
    }
}
